package com.jxt.myjxtmanager.utils;

import android.os.Environment;

/**
 * 全局配置文件
 * public static 全局变量
 *
 * @author lkk
 */
public class Config {


    /**客服电话*/
    public final static String SERVER_TEL = "18510054511";
    /**
     * imageLoader 缓存路径
     */
    public final static String IMAGELOADER_CACHE_PATH = "cache/image";
    /**
     * imageLoader 缓存路径
     */
    public final static String DRIVER_PGOTO_CACHE_PATH = Environment.getExternalStorageDirectory() + "/cache/image2";
    /**
     * 拍照缓存路径
     */
    public final static String CAMERA_PGOTO_CACHE_PATH = Environment.getExternalStorageDirectory() + "/cache/camera/photopicture.jpg";

    /**
     * token 存放key
     */
    public final static String TOKEN = "token";
    /**
     * SharedPreferences 文件名
     */
    public final static String SHARED_CACHE = "^cache?welcome";
    /**
     * SharedPreferences token
     */
    public final static String SHARED_TOKEN = "^cache?token";
    /**
     * 用户id本地缓存 文件名
     */
    public final static String SHARED_DRIVER_ID_FILE_NAME = "usercache";
    /**
     * 设备平台
     */
    public final static String PLATFORM = "android";

    /**
     * 上传头像路径
     */
    public static String AVATAR_PICTURE_PATH = "";

    /**
     * 上传车辆信息路径
     */
    public static String BUS_PICTURE_PATH = "";

    /**
     * 系统消息头像地址
     */
    public static String MESSAGE_SYSTEM_IMAGE_URL = "http://static.1000mob.com/group_img.png";
    /**
     * 群组消息头像地址
     */
    public static String MESSAGE_GROUP_IMAGE_URL = "http://static.1000mob.com/group_img.png";
    /**
     * 头像地址
     */
    public static String MESSAGE_USER_IMAGE_URL = "http://static.1000mob.com/ordinaryImg.png.png";
    /**
     * 活动图
     */
    public static String MESSAGE_ACTIVITY_IMAGE_URL = "http://static.1000mob.com/activity/activity1.png";


    /**
     * 用户协议文件路径
     */
    public static String USER_PROTOCOL_URL = "file:///android_asset/userprotocol.html";
//	public static String USER_PROTOCOL_URL = "http://www.1000mob.com/userprotocol.html";

    public final static String AVATAR_PATH = Environment.getExternalStorageDirectory() + "/" + IMAGELOADER_CACHE_PATH + "/";

    public static String getImagePath() {

        return AVATAR_PATH + System.currentTimeMillis() + ".jpg";
    }


    public class DB {
        public static final String GREEN_DB_NAME = "jiaxiaotong.db";
    }


}
